package com.data.center.entity.foreignDemo;

import com.data.center.annotation.ForeignInfo;
import com.data.center.entity.foreignDemo.Father;
import com.data.center.service.impl.Children1ServiceImpl;
import lombok.Data;

@Data
public class Children1 {
    String id;

    // 在实际使用中，绑定的serviceClass应该绑定为service层Class，以便实现更复杂的方法
    @ForeignInfo(targetClass = Father.class, foreignKey = "id", serviceClass = Children1ServiceImpl.class)
    String fatherId;
}
